package org.openzip.openzip.gui.util.checkBox.event;

import java.awt.event.ActionEvent;

import org.openzip.openzip.gui.util.checkBox.State;


/**
 * Interface specifying how a listener for checkbox state should look like.
 * 
 * @author Jakub Závěrka
 */
public interface ButtonStateChangedListener
{
	/**
	 * Each listener will get this method called when the source changes its
	 * state (<code>State</code>).
	 * 
	 * @param event
	 *           <code>ActionEvent</code> for this action.
	 * @param oldState
	 *           Old state of the source.
	 * @param newState
	 *           New state of the source.
	 */
	void buttonStateChanged(ActionEvent event, State oldState, State newState);
}
